package com.baibei.ebec.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.baibei.basic.BasicRecyclerViewAdapter;

/**
 * Created by tang on 2018/1/2.
 */

public class NewDialogAdapter extends BasicRecyclerViewAdapter {

    public String[] datas = null;
    public NewDialogAdapter(String[] datas){
        this.datas = datas;
    }

    @Override
    protected RecyclerView.ViewHolder onCreateViewHolder(LayoutInflater layoutInflater, ViewGroup viewGroup, int i) {

        return null;
    }

    @Override
    protected void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int i, Object o) {
    }

    @Override
    public int getItemCount() {
        return datas.length;
    }

    public static class ViewHolder extends RecyclerView.ViewHolder{

        private final ImageView iv;

        public ViewHolder(View itemView) {
            super(itemView);
            iv = itemView.findViewById(com.baibei.ebec.home.R.id.iv);
        }
    }
}
